import request from '@/utils/request.js'

// 常量
const api_name = '/auth/h5'

export default {
    login(data) {
        return request({
            url: `${api_name}/login`,
            method: 'post',
            data: data
        })
    },
    getCaptcha() {
        return request({
            url: `${api_name}/getCaptcha`,
            method: 'get'
        })
    },
    register(data) {
        return request({
            url: `${api_name}/register`,
            method: 'post',
            data: data
        })
    }
}
